<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>China Fullfill</title>
<link href="/css/backstage.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/backstage.js"></script>
<link href="/css/blitzer/jquery-ui.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript" src="/js/jquery-ui.js"></script>
<script type="text/javascript" >
<{include file='product/receiving/js/create.js'}>
</script>
<style>
	html,body{text-align:center;border:none;}
	#content{width:950px;text-align:left;position:relative;margin-left:auto;margin-right:auto;background:white;height:100%}
	.contentTop{height:50px;line-height:50px;width:100%;text-align:center;font-size:15px;font-weight:bold;}
	.contentBottom{height:50px;line-height:50px;width:100%;text-align:center}
	.list{width:920px;max-height:28cm;border-collapse:collapse;margin-left:auto;margin-right:auto;}
	.list th,.list td{border:1px solid black;text-align:center;}
	.width1{width:80px;text-align:right;}
	.width2{width:170px;}
	.width3{width:100px;}
	.width4{width:150px;}
	.center{text-align:center}
	.action{cursor:pointer;marin:2px}
	.editTable td{padding:5px;text-align:left;}
    .width40{width: 60px;}
    .alertTip span{
        float: left;
        width: 100%;
        text-align: left;
    }
    .button {
        background: url("images/left-menu-li.gif") repeat-x scroll left top #F1F6F9;
        border: 1px solid #318DAC;
        border-radius: 3px 3px 3px 3px;
        color: #318DAC;
        font-weight: lighter;
        margin: auto 5px;
        padding: 2px 5px;
        vertical-align: middle;
    }
</style>
</head>
<body>
<div id="content">
	<div class="contentTop"><{$lang.receive}><{$lang.msg}><{$lang.input}>(ASN:<{$receiving.receiving_code}>)</div>
    <form id="batchform" name="batchform">
	<table class="list">
	<tr>
		<th><{$lang.sku}></th>
		<th><{$lang.product}><{$lang.name}></th>
		<th><{$lang.category}></th>
		<th><{$lang.quanlity}></th>
        <th><{$lang.status}></th>
        <th><{$lang.standard}><{$lang.weight}></th>
	    <th><{$lang.actual}><{$lang.weight}></th>
        <th><{$lang.quantity}></th>
    	<th><{$lang.actual}><{$lang.quantity}></th>
		<th><{$lang.no_label}><{$lang.quantity}></th>
		<th><{$lang.has_packaging}></th>
        <th><{$lang.fenpi}><{$lang.receive}></th>
		<th><{$lang.exception}><{$lang.msg}></th>
		<!--<th><{$lang.operation}></th>-->
	</tr>
	<{foreach from=$items item=item}>
	<tr style="height: 40px;">
		<td class="<{$lang.sku}><{$item.ri_id}>"><{$item.product.product_sku}></td>
		<td class="title<{$item.ri_id}>"><{$item.product.product_title}></td>
		<td class="category<{$item.ri_id}>"><{$item.product.category.poc_value}></td>
		<td class="weight<{$item.ri_id}>"><{if $item.is_qc == 1}><{$lang.yes}><{else}><{$lang.no}><{/if}></td>
        <td class="weight<{$item.ri_id}>"><{$item.statustext}></td>
        <td class="weight<{$item.ri_id}>"><{$item.product.product_weight}><input type="hidden" app="<{$item.ri_id}>" name="product_weight[<{$item.ri_id}>]" class="width40 product_weight" value="<{$item.product.product_weight}>" autocomplete="off"/></td>
        <td id="weight<{$item.ri_id}>"><{if $item.status != 2}><input type="text" app="<{$item.ri_id}>" onblur="onblurweight(this,<{$item.product.product_weight}>)" name="weight[<{$item.ri_id}>]" class="width40 weightnum" value="<{$item.product.product_weight}>" autocomplete="off"/><{else}><{$item.weight}><{/if}></td>
        <td class="qty<{$item.ri_id}>"><{$item.order_qty}><input type="hidden" name="<{$lang.sku}>[<{$item.ri_id}>]" class="width40 orderQty" value="<{$item.product.product_sku}>" autocomplete="off"/><input type="hidden" name="orderQty[<{$item.ri_id}>]" class="width40 orderQty" value="<{$item.order_qty}>" autocomplete="off"/></td>
    	
        <td id="receiveQty<{$item.ri_id}>"><{if $item.status != 2}><input type="text" app="<{$item.ri_id}>" onblur="onblurqty(this,<{$item.order_qty}>)" name="receiveQty[<{$item.ri_id}>]" class="width40 receiveQty" value="<{$item.order_qty}>" autocomplete="off"/><{else}><{$item.received_qty}><{/if}></td>
		<td id="nonLabled<{$item.ri_id}>"><{if $item.status != 2}><input type="text" onblur="onblurqty(this,<{$item.order_qty}>)" name="nonLabelQty[<{$item.ri_id}>]" class="width40 nonLabelQty" autocomplete="off" value="0"/><{else}><{$item.non_labeled_qty}><{/if}></td>
		<td id="packaged<{$item.ri_id}>"><{if $item.status != 2}><input type="checkbox" id="isPacket_<{$item.ri_id}>" name="isPacket[<{$item.ri_id}>]" value="1"><{else}><{if $item.packaged==1}><{$lang.yes}><{else}><{$lang.no}><{/if}><{/if}></td>
        <td id="isBatch<{$item.ri_id}>"><{if $item.status != 2}><input type="checkbox" app="<{$item.ri_id}>" id="isBatch_<{$item.ri_id}>" name="isBatch[<{$item.ri_id}>]" value="1"><{else}><{if $item.status == 1}><{$lang.yes}><{else}><{$lang.no}><{/if}><{/if}></td>
        <td id="remark<{$item.ri_id}>"><{if $item.status != 2}><textarea name="remark[<{$item.ri_id}>]" class="width4 remark"></textarea><{else}><{$item.remark}><{/if}></td>
		<!--<td>
			<{if $item.status == 1}>
				<img src='/images/icon/normal.gif' title='<{$lang.received}>'/>
			<{else}>
				<img src="/images/icon/edit.gif" class="receive" itemid="<{$item.ri_id}>" title="<{$lang.input}><{$lang.receive}><{$lang.data}>" style="cursor:pointer"/>
			<{/if}>
		</td>-->
	</tr>
	<{/foreach}>
	</table>
        <{if $submit}>
            <div align="center" style="padding-top: 10px;"><input class="button submitbatch" type="button" value=" <{$lang.confirm}><{$lang.submit}> "></div>
        <{/if}>
	</form>
	<div class="contentBottom"> </div>
</div>

<div id="messageDialog" title="<{$lang.system}><{$lang.msg}>"> </div>

<div id="confirmDialog" title="<{$lang.system}><{$lang.msg}>"> </div>

<div id="receiveDialog" title="<{$lang.input}><{$lang.receive}><{$lang.msg}>">
	<form id="editpform">
	<table class="editTable">
		<tr><td><{$lang.product}><{$lang.sku}>:<input type="hidden" name="itemId" autocomplete="off"/></td><td class="<{$lang.sku}>"></td></tr>
		<tr><td><{$lang.product}><{$lang.name}>:</td><td class="title"></td></tr>
		<tr><td><{$lang.product}><{$lang.category}>:</td><td class="category"></td></tr>
		<tr>
			<td><{$lang.standard}><{$lang.weight}>:<input type="hidden" name="weight" value=""  /></td>
			<td class="weight"></td>
		</tr>
<!--		<tr><td><{$lang.actual}><{$lang.weight}>:</td><td><input type=" hidden" name="weight" class="width4"  /></td></tr>-->

		<tr><td><{$lang.quantity}>:</td><td class="qty"></td></tr>
		<tr><td><{$lang.actual}><{$lang.quantity}>:</td><td><input type="text" name="receiveQty" class="width4" autocomplete="off"/></td></tr>
		<tr><td><{$lang.no_label}><{$lang.quantity}>:</td><td><input type="text" name="nonLabelQty" class="width4" autocomplete="off" value="0"/></td></tr>
		<tr><td><{$lang.has_packaging}>:</td><td><input type="radio" name="isPacket" value="1"><{$lang.yes}><input type="radio" name="isPacket" value="0" checked/><{$lang.no}></td></tr>
		<tr><td><{$lang.exception}><{$lang.msg}>:</td><td><textarea name="remark" class="width4"></textarea></td></tr>
	</table>
	</form>
<div>
</body>
</html>